home *** CD-ROM | disk | FTP | other *** search
- XCOPY Is an improved version of the COPY command.
- Instead of reading and writing one file at
- a time, like the copy command, XCOPY reads
- multiple files into memory and thens copies
- them. When used with its switches, XCOPY is
- extrememy fast and versatile. Perhaps this
- command should have been named SUPER-Copy!
-
-
- Format: XCOPY [D:Path]SFile [D:Path]DFile [Switches]
-
- /A copies only those files that have their archive
- bit set (+A). Does NOT reset the archive bit.
-
- /E when used with the /S switch will create exact
- replicas of the source directory structure on
- the target even if one or more of the subdirec-
- tories will be EMPTY when copying is completed.
- /M copies only those files that have their archive
- bit set (+A). However, unlike the /A switch, the
- archive bit will be reset (-A) after copying is
- completed.
-
- /P PROMPTS the user for a [Y/N] response before
- each file is copied.
-
- /S includes SUBDIRECTORIES in the copy operation.
- If a corresponding subdirectory does not exist
- on the TARGET to receive the copied file(s), it
- will be automatically created. (Will not create
- EMPTY subdirectories unless the /E switch is
- used.
-
- /V causes DOS to VERIFY each file as it is copied
- to ensure that it is an EXACT replica of the
- SOURCE.
- /W WAITS for user to insert the proper diskette
- before commencing XCOPY operations.
-
- /D:mm:dd:yy copies only those files created or mod-
- ified ON or AFTER the date specified.
-
- Example: XCOPY \123\*.WK1 A:
-
- First reads as many of the *.WK1 files in the \123
- files as will fit into available memory and then
- copies these files to the diskette in drive A. Will
- repeat this process until all *.WK1 files have been
- transferred.
-
- Example: XCOPY \123\*.WK1 A: /A
-
- Same as above, except ONLY those files that have an
- archive bit of +A will be copied.
-
- Example: XCOPY \123\*.* A: /A /S
-
- Will copy ALL files in the SOURCE \123 directory AND
- its SUBDIRECTORIES that have an archive bit of +A to
- the diskette in drive A. If the subdirectory does
- not already exist on the diskette in drive A, it will
- be created. (Will NOT reset the archive bit of the
- copied SOURCE files to -A.)
-
-
- Example: XCOPY \123\*.* A: /M /S
-
- Same as above, except the archive bit of the copied
- SOURCE files WILL be reset to -A. (This allows these
- files to be EXCLUDED in subsequent XCOPY /A or /M
- operations.)
-
- [*] Unlike BACKUP, the XCOPY command does not prompt
- for additional diskettes when the TARGET diskette
- becomes FULL. This problem can be overcome by
- using the following technique:
-
-
- (1) First set the archive bit of all files in the
- SOURCE directory and its subdirectories to +A
- by issuing an [Attrib +A /S] command. (Ensure
- you make the directory that will be the SOURCE
- the CURRENT directory by issuing the proper CD\
- command.)
-
-
- (2) Next, issue the appropriate XCOPY command for
- the files that you want copied that includes the
- /M and the /S switches.
-
- (3) When the TARGET diskette becomes full XCOPY will
- terminate and give an "insufficient disk space"
- message. Insert a fresh diskette and reissue the
- same command you gave in step 2, above. XCOPY
- will then start copying the files that have NOT
- had the archive bit reset to -A from using the
- /M switch in the first XCOPY command. Repeat this
- process until all files have been successfully
- transferred to the diskettes.
-
-
- Example: CD\123
- ATTRIB +A C:\123\*.* /S
- XCOPY C:\123\*.* A: /M /S
-
- [*] Repeat XCOPY Command with each diskette until the
- "insufficient disk space" message is not given.